package org.dru.clay.rhino.feature;

import org.mozilla.javascript.Context;
import org.mozilla.javascript.ScriptableObject;

/**
 * BasicFeature
 * User: joakimd
 * Date: 2013-07-18
 * Time: 15:45
 */
public final class BasicFeature extends Feature {
    private final String resource;

    public BasicFeature(final String resource) {
        this.resource = resource;
    }

    @Override
    public void init(final Context context, final ScriptableObject scope) throws Exception {
        loadFeatureScript(context, scope, BasicFeature.class, resource);
    }
}
